/*
 * @Author: your name
 * @Date: 2021-03-12 14:54:21
 * @LastEditTime: 2021-03-16 15:24:48
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \test\src\store\index.js
 */
import Vue from 'vue'
import Vuex from 'vuex'
import * as getters from './getters'
import * as mutations from './mutations'
import * as actions from './actions'

Vue.use(Vuex)

export default new Vuex.Store({
  // 定义状态
  state: {
    currentUser: null,
    isLogin: false,
    token: ''
  },
  getters,
  mutations,
  actions
  // modules
})
